﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Data;
using ZCMS.Entities;
using DapperExtensions;
using Dapper;
using ZCMS.IRepositories;

namespace ZCMS.Dapper.Repositories
{
	public class ArticleDapperRepository : DapperRepository<Article>, IArticleDapperRepository
	{
		public ArticleDapperRepository(IActiveTransactionProvider activeTransactionProvider) : base(activeTransactionProvider)
		{
		}



		//TODO:add methos

		public void Test()
		{
			/*
			 
		public override int Execute(string query, object parameters = null);
		public override Task<int> ExecuteAsync(string query, object parameters = null);
		public override IEnumerable<TAny> Query<TAny>(string query, object parameters = null);
		public override IEnumerable<TEntity> Query(string query, object parameters = null);
		public override Task<IEnumerable<TAny>> QueryAsync<TAny>(string query, object parameters = null);
		public override Task<IEnumerable<TEntity>> QueryAsync(string query, object parameters = null);
			 */

		}



		public void Page()
		{
			var sql = "";
			var sql2 = "";
			var sql3 = "";
			var sql4 = "";

			//var result = Connection.GetListPaged<dynamic>(1, 20, sql, sql2, sql3, sql4);
		}
	}
}
